import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
	history: createWebHistory(import.meta.env.BASE_URL),
	routes: [
		{ path: '/', redirect: '/screenPage' },
		{ path: '/sellerPage', component: () => import('@/views/SellerPage.vue') },
		{ path: '/rankPage', component: () => import('@/views/RankPage.vue') },
		{ path: '/trendPage', component: () => import('@/views/TrendPage.vue') },
		{ path: '/mapPage', component: () => import('@/views/MapPage.vue') },
		{ path: '/hotPage', component: () => import('@/views/HotPage.vue') },
		{ path: '/stockPage', component: () => import('@/views/StockPage.vue') },
		{ path: '/screenPage', component: () => import('@/views/ScreenPage.vue') }
	]
})

export default router
